package com.trkj;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Scanner;

public class zy1 {
    private static org.apache.logging.log4j.Logger Logger= LogManager.getLogger(zy1.class);
    public  static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入手机号");
        String phone=sc.next();
        if(phone.length()!=11){
            Logger.warn("警告手机号不足11位");
        }else if(!phone.matches("\\d+")){
            Logger.error("严重错误，不是纯数字");
        }else{
            Logger.debug(phone.substring(6));
            Logger.debug(6+phone.substring(6));
        }

    }

}
